<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div-element></div-element>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        Vue.component("div-element",{
            template: `
                <div>
                    <input type="text"
                     :value="message"
                     @input="message = $event.target.value">
                    <span>{{message}}</span>

                    <input type="checkbox" v-model="checked" /><label>全选/取消</label>
                    <input type="checkbox" :checked="checked" /><label>HTML</label>
                    <input type="checkbox" :checked="checked"/><label>CSS</label>
                    <input type="checkbox" :checked="checked"/><label>JavaScript</label>
                    <input type="checkbox" :checked="checked"/><label>React</label>
                </div>
            `,
            data(){
                return {
                        
                    message:"hello vue",
                    checked:false
                }
            },
        });
        const app = new Vue({
            el: "#app"
        });
    </script>
</body>
</html>